using System;
using System.Collections.Generic;
using System.Text;
using RS.DOM.Common;

namespace RS.DOM.Construction
{
    public class DocItem
    {
        #region Constructors

        public DocItem()
        {
            m_value = 0;
        }

        #endregion

        #region Members

        private object m_value;
        private int m_x;
        private int m_y;
        
        #endregion

        #region Properties

        public int X
        {
            get
            {
                return m_x;
            }

            set
            {
                m_x = value;
            }
        }

        public int Y
        {
            get
            {
                return m_y;
            }

            set
            {
                m_y = value;
            }
        }

        public object Value
        {
            get
            {
                return m_value;
            }

            set
            {
                m_value = value;
            }
        }

        #endregion

        #region Methods

        public override string ToString()
        {
            return m_value.ToString();
        }

        public DocItem Copy()
        {
            DocItem item = new DocItem();
            item.X = this.X;
            item.Y = this.Y;
            item.Value = this.Value;

            return item;
        }

        #endregion
    }
}
